/*
 * ImageResource.h
 *
 *  Created on: May 11, 2012
 *      Author: mklingen
 */

#ifndef IMAGERESOURCE_H
#define IMAGERESOURCE_H
#include <SFML/Graphics.hpp>
#include "Resource.h"

namespace kling
{

    // Class for storing image data.
    class ImageResource: public kling::Resource
    {
        public:
            ImageResource(std::string resourceName, std::string fileName);
            virtual ~ImageResource();

            // Loads the image into memory.
            virtual bool Initialize();

            inline sf::Image* GetImage() { return m_image; }
            inline std::string GetFileName() { return m_fileName;}

        private:
            sf::Image* m_image;
            std::string m_fileName;
    };

} /* namespace kling */
#endif /* IMAGERESOURCE_H */
